package com.zero.lite.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_admin_role")
public class AdminRole extends Model<AdminRole> {

    private static final long serialVersionUID = 1L;

	@TableId(value="amdin_role_id", type= IdType.AUTO)
	private Integer amdinRoleId;
	@TableField("user_id")
	private Integer userId;
	@TableField("role_id")
	private Integer roleId;


	public Integer getAmdinRoleId() {
		return amdinRoleId;
	}

	public void setAmdinRoleId(Integer amdinRoleId) {
		this.amdinRoleId = amdinRoleId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Override
	protected Serializable pkVal() {
		return this.amdinRoleId;
	}

	@Override
	public String toString() {
		return "AdminRole{" +
			"amdinRoleId=" + amdinRoleId +
			", userId=" + userId +
			", roleId=" + roleId +
			"}";
	}
}
